import 'package:flutter/material.dart';


class YBToast {
  static toast(BuildContext context, String msg, {duration = const Duration(microseconds: 600),SnackBarAction action}){
    Scaffold.of(context).showSnackBar(SnackBar(
      content: Text(msg),
      duration: duration,
      action: action,
      backgroundColor: Theme.of(context).primaryColor,
    ));
  }
}